package com.njtoyo.taxi.admin.mapper.master.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.master.entity.BankWithdrawAction;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@DS(Const.PRIMARY_DS)
public interface BankWithdrawActionMapper extends BaseMapper<BankWithdrawAction> {

    @Select("SELECT * FROM bank_withdraw_action WHERE withdraw_id = #{withdrawId} ORDER BY id DESC")
    List<BankWithdrawAction> getByWithdrawId(Long withdrawId);

    @Select("")
    Integer checkExistedWithdrawAction(Long withdrawId);
}
